package cn.redsoft.turingapi.request;

import cn.redsoft.turingapi.common.util.Consts;

public class TuringRequestMetaData {

	private String key = Consts.TURING_API_KEY;
	private String info;
	private String userid;
	protected String loc;// 非必须 北京中关村
	protected long lon;// 非必须 东经116.234632（小数点后保留6位），需要写为116234632
	protected long lat;// 非必须 北纬40.234632（小数点后保留6位），需要写为40234632

	public TuringRequestMetaData() {
	}

	public TuringRequestMetaData(String info, String userid) {
		super();
		this.info = info;
		this.userid = userid;
	}

	public TuringRequestMetaData(String key, String info, String userid,
			String loc, long lon, long lat) {
		super();
		this.key = key;
		this.info = info;
		this.userid = userid;
		this.loc = loc;
		this.lon = lon;
		this.lat = lat;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getLoc() {
		return loc;
	}

	public void setLoc(String loc) {
		this.loc = loc;
	}

	public long getLon() {
		return lon;
	}

	public void setLon(long lon) {
		this.lon = lon;
	}

	public long getLat() {
		return lat;
	}

	public void setLat(long lat) {
		this.lat = lat;
	}

	@Override
	public String toString() {
		return "TuringRequestMetaData [key=" + key + ", info=" + info
				+ ", userid=" + userid + ", loc=" + loc + ", lon=" + lon
				+ ", lat=" + lat + "]";
	}
}
